﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace Jabr.GUI.Forms
{
    public partial class TextForm : Form
    {
        public TextForm()
        {
            InitializeComponent();
        }

        private void OkBtn_Click(object sender, EventArgs e)
        {
            this.DialogResult = DialogResult.OK;
            this.Close();
        }

        private void TextValue_Validating(object sender, CancelEventArgs e)
        {
            if (string.IsNullOrEmpty(this.TextValue.Text) && this.DialogResult == DialogResult.OK)
                e.Cancel = true;
        }
    }
}
